package models

type SysCourseWare struct {
	Model
	CourseId          int    `json:"course_id" gorm:"type:int(10);comment:课程ID"`
	Name              string `json:"name" gorm:"type:varchar(50);comment:name"`
	CourseWare        string `json:"course_ware" gorm:"varchar(255);comment:课程章节"`
	Pid               int    `json:"pid" gorm:"int(10);comment:父级ID"`
	Level             int    `json:"level" gorm:"tinyint(2);comment:等级"`
	Sort              int    `json:"sort" gorm:"tinyint(2);comment:排序"`
	IsShow            int    `json:"is_show" gorm:"tinyint(1);default:-1;comment:是否显示"`
	IsContainExercise int    `json:"is_contain_exercise" gorm:"type:tinyint(2);default:-1;comment:是否含有练习题 -1-没有练习题 1-有练习题"`
	UrlName           string `json:"url_name" gorm:"varchar(50);comment:课件名称"`
	Count             int    `json:"count" gorm:"type:int(10);comment:题目数量"`
	ControlBy
	ModelTime
}

func (s SysCourseWare) TableName() string {
	return "sys_course_ware"
}
